//
//  DataModel.h
//  CoolRollerSkating
//
//  Created by 谢伟康 on 15/11/9.
//  Copyright © 2015年 Coollang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DataModel : NSObject

+ (void)saveAppVersion:(NSString *)version;
+ (NSString *)storeAppVersion;

+ (void)saveLastLoginAccountID:(NSString *)accountID;
+ (NSString *)lastLoginID;

+ (void)setAutoLogin:(BOOL)hasLogin;
+ (BOOL)shouldAutoLogin;

+ (void)saveLastUUIDString:(NSString *)uuidString;
+ (NSString *)lastUUIDString;

+ (void)setIsHaveHistory:(BOOL)isHaveHistory;
+ (BOOL)isHaveHistoryData;

/** 写入或读取实时训练设置训练目标-归档解档路径 */
+ (NSString *)writeAndReadRealTimeTargetpathString;
/** 写入或读取实时训练保存在本地的数据-归档解档路径 */
+ (NSString *)writeAndReadRealTimeTrainDataPathString;

/** 保存最新的获取正反手训练的上传时间戳 */
+ (void)saveLastRealTimeGetHBUploadTime:(NSString *)lastHBUploadTime;
+ (NSString *)lastHBUploadTime;
/** 保存最新的获取发球训练的上传时间戳 */
+ (void)saveLastRealTimeGetFQUploadTime:(NSString *)lastFQUploadTime;
+ (NSString *)lastFQUploadTime;

/** 实时训练是否开启声音 */
+ (void)setRealTimeSound:(BOOL)open;
+ (BOOL)lastRealTimeSound;

@end
